<h2>Request an Account</h2>
<p>To use this service you must be a member of staff or a student of the School of Engineering at Swansea University. You may request an account by completing the following form. Your status will be subject to confirmation by one of the project coordinators and there may be a delay of one or two working days before your account is activated.</p>

<%= error_messages_for :user %>
<% form_for :user, :url => users_path do |f| -%>
<fieldset><legend>Login information</legend>
<p><label for="staff_or_student_number">Staff or Student Number<br/>
<%= f.text_field 'staff_or_student_number' %>

	<p><label for="login">Your Choice of Login</label><br/>
<%= f.text_field 'login' %></p>

<p><label for="password">Password</label><br/>
<%= f.password_field 'password' %></p>

<p><label for="password_confirmation">Confirm Password</label><br/>
<%= f.password_field 'password_confirmation' %></p>
</fieldset>
<fieldset><legend>About you</legend>
<p>Please give us some extra information to help us to identify you and to allow us to personalize the application for you.</p>
<p><label for="title">Title</label>
<%= f.select(:title, %w{ Mr Mrs Ms Dr Prof. } )%>
<label for="first_name">First Name</label>
<%= f.text_field 'first_name' %></p>
<label for="last_name">Last Name</label>
<%= f.text_field 'last_name' %></p>

<p><label for="email">What is your preferred email address?</label><br/>
<%= f.text_field 'email' %></p>
<p><label for="staff_or_student">Or you a student <%= f.radio_button :staff_or_student, "student", :checked => "checked" %> or staff  <%= f.radio_button :staff_or_student, "staff" %>?</label> 
</fieldset>

<p><%= submit_tag 'Request account' %></p>
<% end -%>